Skip to content

Conversation

pnkfelix
Copy link
Contributor

Reinitialize the dropflag hint in occurrences of variable bindings.

Such bindings can occur in loops, and thus the binding can be executed after a previous move cleared the flag, thus necessitating the flag be reset to DTOR_NEEDED_HINT.

Fix #27401.

pnkfelix added 2 commits July 31, 2015 03:10
Such bindings can occur in loops, and thus the binding can be executed
after a previous move cleared the flag, thus necessitating the flag be
reset to `DTOR_NEEDED_HINT`.

Fix rust-lang#27401.
@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@pnkfelix
Copy link
Contributor Author

hat-tip to @alexcrichton for narrowing down the crates.io unit test failures that exposed this bug!

@nikomatsakis
Copy link
Contributor

r+ --- seems good, the only nit is that there could be a test for the dummy local case

@pnkfelix
Copy link
Contributor Author

@bors r=nikomatsakis c681d30

@bors
Copy link
Collaborator

bors commented Jul 31, 2015

⌛ Testing commit c681d30 with merge eb16343...

@bors
Copy link
Collaborator

bors commented Jul 31, 2015

💔 Test failed - auto-mac-64-opt

@alexcrichton
Copy link
Member

@bors: retry

On Fri, Jul 31, 2015 at 1:13 AM, bors [email protected] wrote:

[image: 💔] Test failed - auto-mac-64-opt
http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5919


Reply to this email directly or view it on GitHub
#27413 (comment).

@pnkfelix
Copy link
Contributor Author

@bors p=1

@pnkfelix
Copy link
Contributor Author

(i upp'ed priority because I want to get quicker feedback about problems in landing this PR, since I want to ensure it gets into beta but I may be traveling during the time that beta is cut.)

bors added a commit that referenced this pull request Jul 31, 2015
Reinitialize the dropflag hint in occurrences of variable bindings.

Such bindings can occur in loops, and thus the binding can be executed after a previous move cleared the flag, thus necessitating the flag be reset to `DTOR_NEEDED_HINT`.

Fix #27401.
@bors
Copy link
Collaborator

bors commented Jul 31, 2015

⌛ Testing commit c681d30 with merge 8344236...

@bors
Copy link
Collaborator

bors commented Jul 31, 2015

💔 Test failed - auto-mac-32-opt

@pnkfelix
Copy link
Contributor Author

pnkfelix commented Aug 5, 2015

An update: this PR appears to either inject a double-free, or somehow expose a latent one. My suspicion is that the double-free is being "injected", though the real bug is probably somewhere deeper in the non-zeroing moves implementation. Still looking.

@bors
Copy link
Collaborator

bors commented Aug 5, 2015

☔ The latest upstream changes (presumably #27529) made this pull request unmergeable. Please resolve the merge conflicts.

@pnkfelix
Copy link
Contributor Author

pnkfelix commented Aug 7, 2015

closing for now; I'll revive this later, but for the short-term we're just disabling NZM; see #27582

@pnkfelix pnkfelix closed this Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants